package studio.raptor.extractor.segment.config;

import java.util.Map;
import java.util.concurrent.atomic.AtomicBoolean;

/**
 * Created by liuyong8 on 2017/7/19.
 */
public class ServerConfig {
    private Integer kindId;
    private String eventName;
    private Integer sort;
    private String bizName;
    private Integer databusKindId;
    private Map<String/*JsonElementName*/,String/*serverUrl*/> serverUrlMap;
    private Long overTime;
    private Integer eventQueueSize;
    private Integer eventDataQueueSize;
    private Integer buildJsonQueueSize;

    private AtomicBoolean extractorMQEnabled;
    private AtomicBoolean nodeMsgAssemblingEnabled;
    private AtomicBoolean nodeMsgBuildingEnabled;
    private AtomicBoolean deliveringEnabled;

    public String getBizName() {
        return bizName;
    }

    public void setBizName(String bizName) {
        this.bizName = bizName;
    }

    public String getEventName() {
        return eventName;
    }

    public void setEventName(String eventName) {
        this.eventName = eventName;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getKindId() {
        return kindId;
    }

    public void setKindId(Integer kindId) {
        this.kindId = kindId;
    }

    public Long getOverTime() {
        return overTime;
    }

    public void setOverTime(Long overTime) {
        this.overTime = overTime;
    }

    public AtomicBoolean isExtractorMQEnabled() {
        return extractorMQEnabled;
    }

    public void setExtractorMQEnabled(AtomicBoolean extractorMQEnabled) {
        this.extractorMQEnabled = extractorMQEnabled;
    }

    public AtomicBoolean getExtractorMQEnabled() {
        return extractorMQEnabled;
    }

    public Map<String, String> getServerUrlMap() {
        return serverUrlMap;
    }

    public void setServerUrlMap(Map<String, String> serverUrlMap) {
        this.serverUrlMap = serverUrlMap;
    }

    public Integer getDatabusKindId() {
        return databusKindId;
    }

    public void setDatabusKindId(Integer databusKindId) {
        this.databusKindId = databusKindId;
    }

    public Integer getEventQueueSize() {
        return eventQueueSize;
    }

    public void setEventQueueSize(Integer eventQueueSize) {
        this.eventQueueSize = eventQueueSize;
    }

    public Integer getEventDataQueueSize() {
        return eventDataQueueSize;
    }

    public void setEventDataQueueSize(Integer evenDataQueueSize) {
        this.eventDataQueueSize = evenDataQueueSize;
    }

    public Integer getBuildJsonQueueSize() {
        return buildJsonQueueSize;
    }

    public void setBuildJsonQueueSize(Integer buildJsonQueueSize) {
        this.buildJsonQueueSize = buildJsonQueueSize;
    }

    @Override
    public String toString() {
        return "ServerConfig{" +
            "kindId=" + kindId +
            ", eventName='" + eventName + '\'' +
            ", sort=" + sort +
            ", bizName='" + bizName + '\'' +
            ", databusKindId=" + databusKindId +
            ", serverUrlMap=" + serverUrlMap +
            ", overTime=" + overTime +
            ", eventQueueSize=" + eventQueueSize +
            ", eventDataQueueSize=" + eventDataQueueSize +
            ", buildJsonQueueSize=" + buildJsonQueueSize +
            ", extractorMQEnabled=" + extractorMQEnabled +
            ", nodeMsgAssemblingEnabled=" + nodeMsgAssemblingEnabled +
            ", nodeMsgBuildingEnabled=" + nodeMsgBuildingEnabled +
            ", deliveringEnabled=" + deliveringEnabled +
            '}';
    }
}
